﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RestFullChatAJAX.Models
{
    public class YahooInfo
    {
        String _username = String.Empty;

        public String Username
        {
            get { return _username; }
            set { _username = value; }
        }

        String _sessionID = String.Empty;

        public String SessionID
        {
            get { return _sessionID; }
            set { _sessionID = value; }
        }

        String _requestToken = String.Empty;

        public String RequestToken
        {
            get { return _requestToken; }
            set { _requestToken = value; }
        }

        String _server = String.Empty;

        public String Server
        {
            get { return _server; }
            set { _server = value; }
        }

        String _notifyServer = String.Empty;

        public String NotifyServer
        {
            get { return _notifyServer; }
            set { _notifyServer = value; }
        }

        bool _state = false;

        public bool State
        {
            get { return _state; }
            set { _state = value; }
        }

        int _lastSeq = 0;

        public int LastSeq
        {
            get { return _lastSeq; }
            set { _lastSeq = value; }
        }

        OauthInfo _oauth;

        public OauthInfo Oauth
        {
            get { return _oauth; }
            set { _oauth = value; }
        }

        public YahooInfo(String username, String requestTK, String sessionid, String server, OauthInfo oauth)
        {
            Username = username.Trim();
            SessionID = sessionid.Trim();
            RequestToken = requestTK.Trim();
            Server = server.Trim();
            Oauth = oauth;
        }

        public YahooInfo(String username)
        {
            Username = username;
        }
    }
}